Border1 pixel problem
For example:
HTML:
<div class="content border-1px"></div>
css:
.border-1px{
position: relative;
}
.border-1px:before{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
.border-1px:before {
right: -100%;
bottom: -100%;
-webkit-transform: scale(0.5);
transform: scale(0.5);
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3) {
.border-1px:before {
right: -200%;
bottom: -200%;
-webkit-transform: scale(0.333333);
transform: scale(0.333333);
}
}
.content:before{
border: 1px solid red;
}
Effect:
Read More:
- pycharm: Unable to display frame vriables
- Writing to settings when appium of Xiaomi mobile phone and oppo mobile phone starts requires:android.permission.WRITE_ SECURE_ SETTINGS
- Common compatibility problems of VS2010 to vs2017 projects
- Win10 desktop right click display settings MS- settings:display Or Ms- settings:personalization-background resolvent
- Mobile phone code termux
- Practice — CSS3 — frame animation to achieve special effects
- Mobile app development: installation and configuration of react native
- The apple mobile device service failed to start. Error 1053 is resolved
- Get the height of mobile phone status bar through reflection
- Using Fiddler to capture mobile app
- Fixed Frame [base_link] does not exist
- Non real time fast synchronization scheme for mobile devices
- JS Mobile Page to determine whether it is iPhone X, and then set the corresponding height of the element?
- Mobile development: the error of “task failed with exit 1 signal 0 {…”
- Mobile development: prompt ‘Task failed with exit 1 signal 0 {…’ error
- Dependency frame package of Maven Alibaba JSON
- Mobile phone code scanning applet login authorization error
- Causes and solutions of black frame flashback after debugging visual studio 2017
- Renaming the column name of data frame in R language
- The problem of error in adaptation of Vue using vant mobile terminal rem