[英]I would like to add a custom style for images on gitbook markdown
This is the image code in my.md file:这是 my.md 文件中的图像代码:
![focal_point](../screenshots/Bildschirmfoto_Focal_Point.png)
website.css:网站.css:
img[alt="focal_point"] {
width: 40%;
}
img {
max-width: 100%;
}
This is in my book.json file According to the doc :这是在我的书中。json 文件根据 文档:
{
"name": "web-handbook",
"version": "1.0.0",
"gitbook": "2.5.2",
"styles": {
"website": "styles/website.css",
},
"structure": {
"summary": "docs/SUMMARY.md"
}
}
Are you looking to add new CSS styles to the image?您是否希望将新的 CSS styles 添加到图像中? You can add styles like so:
您可以像这样添加 styles:
img[alt="focal_point"] {
border: 5px solid red;
}
If that is not it, please elaborate on what you are trying to do.如果不是这样,请详细说明您要做什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.