style.init.css
v2.0.1
Published
Page style initialization, and make the style look more normal in some browsers.
Downloads
36
Maintainers
Readme
INSTALL
npm install --save style.init.css
# OR
yarn add style.init.css
USAGE
// javascript
import 'style.init.css'
EXAMPLE
The style sheet contains some very commonly used but not easy to remember styles.
The sentence is too long with ellipsis
<p class="ellipsis">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Corporis quisquam quos sapiente, vitae repellat assumenda debitis tempora ipsum accusantium quod ut, sequi eum qui. Accusantium minima nostrum aspernatur veritatis iusto.</p>
When the above line of text cannot be displayed completely in one line, he will replace the excess part with an ellipsis.
You can even use ellipsis-1
, ellipsis-2
, ellipsis-3
and other class names to control the number of lines. When the text exceeds the specified number of lines, an ellipsis will be used at the end of the text to replace the undisplayable text. This range supports 1 to 10 rows. They correspond to the class names ellipsis-1
and ellipsis-10
respectively.
DESCRIPTION
- This project adds some special browser compatible styles on the basis of
normalize.css
, such as x5 kernel browsers. - In addition, a little bit of beautification has been added to the style sheet, but not much, because
style.init.css
is used for projects that require a high degree of customization. - Good suggestions can be fed back to me at
Issues
, I'll be happy to adopt it. - Demo page:
Style.init.css Demo
NOTICE
- Some styles are for experience only, Compatibility is not ideal, for example:
.ps-bg
,.ant-line
, etc.